home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
UTILITY
/
DO1002.ARJ
/
PASSWORD.SCR
< prev
next >
Wrap
Text File
|
1991-12-03
|
2KB
|
58 lines
.pg wi full clr cy
COMMAND NAME»gray«: »%t« GenPassword »ye«
/PASSWORD {filename} {pattern} {seed}
/cw
»wh«Retrieves/Generates a password based on »cy«{pattern}»wh«.»#«
This function is used primarily with communications functions
to generate a new random password for systems which require
you to change your password at intervals.
»wh«
{filename}»#« The name of a text file from which to read the
password or into which to write the generated
password.
»wh«
{pattern}»#« A template to be used when generating a new
password. If pattern is included, a »gr«NEW»#« password
will be generated, otherwise the »ye«OLD»#« password
will be read from »cy«{filename}»#«.
»wh«
{seed}»#« A number used to seed the random number
generator. The same »cy«{seed}»#« will generate
the same sequence of passwords.
The password is stored in the variable »ye«PASSWORD»#«.
.pg clr
The characters used in »cy«{pattern}»#« are indicated below:
»wh«?»cy« = »#«any character from the sets below
»wh«$»cy« = »#«any alpha character (»cy«ABCDEFGHIJKLMNOPQRSTUVWXYZ»#«)
»wh«#»cy« = »#«any numeric character (»cy«0123456789»#«)
»wh«%»cy« = »#«any special character (»cy«!#$^&*()<>?+=»#«)
any other character will be placed in the password directly.
If »cy«{seed}»#« is »wh«<> »re«0»#«, it will be used to set the randomize pattern.
.pg clr
»gr«EXAMPLES»gray«:»#« Press »bo«<enter>»#« to execute each of the »%t«/PASSWORD»#«
commands below.
|/PASSWORD PASSWORD.TMP ????#???? 5
Pattern : ????#????
Generated: "%password".
|/PASSWORD PASSWORD.TMP
Pattern : ????#????
Retrieved: "%password"
|/PASSWORD PASSWORD.TMP $#$#%$#?#% 10
Pattern : $#$#%%$#?#%%
Generated: "%password"
!q;del PASSWORD.TMP
/ENDEXEC CLEAR